<?php
/**
 * Created by PhpStorm.
 * User: THINK
 * Date: 2017/8/25
 * Time: 14:48
 */
namespace Home\Controller;

use Think\Controller;

class SpecialController extends Controller
{
    public function index()
    {
        $indexs = M('announce');
        $lists = $indexs->order('posttime desc')->limit(0,1)->select();
        $this->assign('lists',$lists);
        $this->display();
    }
    public function show(){
        $indexs = M('announce');
        $listss = $indexs->order('posttime desc')->limit(0,1)->select();
        $this->assign('listss',$listss);
        $id  = I('id');
        $index = M('article');
        $list = $index->field('title,content,click,publishtime')->find($id);
        $lists = $index->select();
        $this->assign('list',$list);
        $this->assign('lists',$lists);
        $this->display();
    }
}